import doc from './document'
export const menu = [
    {
        path: "/home",
        component: () => import("@/view/Home"),
        meta: {
            title: "首页",
        },
    },
    {
        path: "/demo",
        component: () => import("@/view/Document"),
        meta: {
            title: "文档",
        },
        children: doc,
    },
    {
        path: "/onlinePreview",
        component: () => import("@/view/OnlinePreview"),
        meta: {
            title: "在线预览",
        },
        children: [
            {
                path: "/pdf",
                component: () => import("@/view/OnlinePreview/Pdf.vue"),
                meta: {
                    title: "PDF",
                },
            },
            {
                path: "/excel",
                component: () => import("@/view/OnlinePreview/Excel.vue"),
                meta: {
                    title: "Excel",
                },
            },
        ],
    },
    {
        path: "/animation1",
        component: () => import("@/view/Animation"),
        meta: {
            title: "动画",
        },
        children: [
            {
                path: "/animation",
                component: () => import("@/view/Animation/Demo1.vue"),
                meta: {
                    title: "手风琴",
                },
            },
            {
                path: "/demo2",
                component: () => import("@/view/Animation/Demo2.vue"),
                meta: {
                    title: "移动位置",
                },
            },
        ],
    },
    {
        path: "/echarts",
        component: () => import("@/view/Echarts"),
        meta: {
            title: "Echarts",
        },
        children: [
            {
                path: "/echarts1",
                component: () => import("@/view/Echarts/Line/index.vue"),
                meta: {
                    title: "折线图1",
                },
            },
            {
                path: "/echarts2",
                component: () => import("@/view/Echarts/Bar/index.vue"),
                meta: {
                    title: "折线图2",
                },
            },
            {
                path: "/echarts3",
                component: () => import("@/view/Echarts/ApmLine/index.vue"),
                meta: {
                    title: "折线图3",
                },
            },
            {
                path: "/ganttChart",
                component: () => import("@/view/GanttChart/index.vue"),
                meta: {
                    title: "甘特图",
                },
            },
        ],
    },
    {
        path: "/canvas",
        component: () => import("@/view/Canvas"),
        meta: {
            title: "Canvas库",
        },
        children: [
            {
                path: "/canvas1",
                component: () => import("@/view/Canvas/Konva/index.vue"),
                meta: {
                    title: "Konva.js",
                },
            },
        ],
    },
    {
        path: "/vueUse",
        component: () => import("@/view/Vueuse"),
        meta: {
            title: "Vueuse",
        },
    },
    {
        path: "/monaco",
        component: () => import("@/view/Monaco/index.vue"),
        meta: {
            title: "Monaco编辑器",
        },
    },
    {
        path: "/svg",
        component: () => import("@/view/Svg"),
        meta: {
            title: "svg图标的使用",
        },
    },
    {
        path: "/functionCom",
        component: () => import("@/view/FunctionCom"),
        meta: {
            title: "函数调佣组件",
        },
    },
    {
        path: "/progress",
        component: () => import("@/view/Progress"),
        meta: {
            title: "css实现圆环进度条",
        },
    },
    {
        path: "/carousel",
        component: () => import("@/view/Carousel"),
        meta: {
            title: "轮播插件",
        },
    },
    {
        path: "/textarea",
        component: () => import("@/view/Textarea"),
        meta: {
            title: "文本域自动高度",
        },
    },
    {
        path: "/batchAdd",
        component: () => import("@/view/BatchAdd"),
        meta: {
            title: "批量添加",
        },
    },
    {
        path: "/batchImport",
        component: () => import("@/view/BatchImport"),
        meta: {
            title: "批量引入组件",
        },
    },
    {
        path: "/directives",
        component: () => import("@/view/Directives"),
        meta: {
            title: "全局指令",
        },
    },
    {
        path: "/slide",
        component: () => import("@/view/Slide"),
        meta: {
            title: "平滑进入指令",
        },
    },
    {
        path: "/customComponent",
        component: () => import("@/view/CustomComponent"),
        meta: {
            title: "自定义组件库",
        },
    },
    {
        path: "/gaodeMap",
        component: () => import("@/view/GaoDeMap"),
        meta: {
            title: "高德地图",
        },
    },
    {
        path: "/livePhoto",
        component: () => import("@/view/LivePhoto"),
        meta: {
            title: "实况图预览",
        },
    },
    {
        path: "/draggable",
        component: () => import("@/view/DraggableDemo"),
        meta: {
            title: "拖拽",
        },
    },
    {
        path: "/watermark",
        component: () => import("@/view/Watermark"),
        meta: {
            title: "水印",
        },
    },
    {
        path: "/ExportExcel",
        component: () => import("@/view/ExportExcel"),
        meta: {
            title: "导出Excel",
        },
    },
    {
        path: "/SvgToImage",
        component: () => import("@/view/SvgToImage"),
        meta: {
            title: "svg优化展示",
        },
    },
    {
        path: "/PrintAnimation",
        component: () => import("@/view/PrintAnimation"),
        meta: {
            title: "打印动画",
        },
    },
    {
        path: "/pingyin",
        component: () => import("@/view/Pinyin"),
        meta: {
            title: "拼音库",
        },
    },
    {
        path: "/i18n",
        component: () => import("@/view/I18n"),
        meta: {
            title: "国际化",
        },
    },
];
